package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 app_user
 * 
 * @author xuk
 * @date 2024-08-14
 */
public class AppUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String userName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String userPhone;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userBirthday;

    /** 积分 */
    @Excel(name = "积分")
    private BigDecimal shoppingPoints;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setUserPhone(String userPhone) 
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone() 
    {
        return userPhone;
    }

    public void setUserBirthday(Date userBirthday) 
    {
        this.userBirthday = userBirthday;
    }

    public Date getUserBirthday() 
    {
        return userBirthday;
    }

    public void setShoppingPoints(BigDecimal shoppingPoints) 
    {
        this.shoppingPoints = shoppingPoints;
    }

    public BigDecimal getShoppingPoints() 
    {
        return shoppingPoints;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("userPhone", getUserPhone())
            .append("userBirthday", getUserBirthday())
            .append("shoppingPoints", getShoppingPoints())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
